package com.wzcl.app.model.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class FileModelDto extends BaseDto {

    @NotBlank(message = "名称不能为空")
    @ApiModelProperty(value = "素材名称")
    private String name;

    @ApiModelProperty(value = "素材描述")
    private String description;

    @NotNull(message = "类型不能为空")
    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "封面图")
    private String previewImage;

    @ApiModelProperty(value = "内容")
    private String content;

    @NotNull(message = "所属组别不能为空")
    @ApiModelProperty(value = "所属组别")
    private Integer fileGroupId;

    @ApiModelProperty(value = "目标Id")
    private List<Integer> modelIdList;
}
